home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000165_arthur.marsh@adelaide.edu.au_Tue May 22 10:49:06 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  36 lines

  1. Article: 12461 of comp.protocols.kermit.misc
  2. Message-ID: <3B09E25B.8117DD48@adelaide.edu.au>
  3. Date: Tue, 22 May 2001 13:21:55 +0930
  4. From: Arthur Marsh <arthur.marsh@adelaide.edu.au>
  5. Organization: The University of Adelaide
  6. X-Mailer: Mozilla 4.5 [en]C-CCK-MCD   (WinNT; I)
  7. X-Accept-Language: en,pdf
  8. MIME-Version: 1.0
  9. Newsgroups: comp.protocols.kermit.misc
  10. Subject: testing a TCP port and logging response
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. NNTP-Posting-Host: arthur.its.adelaide.edu.au
  14. X-Trace: 22 May 2001 13:21:55 +0950, arthur.its.adelaide.edu.au
  15. Lines: 17
  16. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!news.verio.net!nntp.frontiernet.net!nntp.gblx.net!europa.netcrusader.net!152.163.239.129!portc01.blue.aol.com!news.stealth.net!intgwpad.nntp.telstra.net!news1.optus.net.au!optus!yorrell.saard.net!hakea.services.adelaide.edu.au!arthur.its.adelaide.edu.au
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12461
  18.  
  19. Hi, when using C-Kermit on a Unix machine to check that a service is
  20. alive by running:
  21.  
  22. echo 'set port localhost 99'|kermit
  23.  
  24. the shell (ksh on Tru64 4.0E) seems to show the same status both for
  25. successful connections and "connection refused" situations.
  26.  
  27. How would one set C-Kermit to test a TCP port, (waiting only a few
  28. seconds for a response and not a long timeout), return a success/failure
  29. status to the calling shell, and save any response from the connection
  30. attempt to a file?
  31.  
  32. -- 
  33. Arthur Marsh, Network Support Officer, Information Technology Services
  34. The University of Adelaide SA 5005 Australia
  35. Ph: +61 8 8303 6109, Mobile: +61 414 260 077
  36.